import { RouteProp } from '@react-navigation/native'; // 获取route的props
// 定义每个路由的参数 偷懒直接any 绝对没有报错
// https://blog.csdn.net/gongch0604/article/details/122035564?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-3.pc_relevant_default&utm_relevant_index=6
export type RouterParamsList = {
  "Home":any,
  "SafeViewTest":undefined,
  'Collection': {type:string} 
}
export type RouteType = RouteProp<RouterParamsList>;
declare global {
  namespace ReactNavigation {
      interface RootParamList extends RouterParamsList {}
  }
}

export type RouterConfigTypes = {
  name:string,
  title:string,
  component:any,
  needLogin?:boolean
  options?:any,
  headerShown?:boolean
}